/**
 *
 */
package gemini.basic.dao;

import gemini.basic.dto.SearchProductCriteria;
import gemini.basic.model.Product;

import java.util.List;

/**
 *
 */
public interface ProductDao {
	public Product getByCode(String code);
	
	public Product getById(int code);

	public List<Product> findProduct(
			SearchProductCriteria criteria);

	public List<Product> getAll();
	
	boolean delete(Product product);
	
	public Product saveOrUpdate(Product product, boolean flush) ;
}
